import request, { post, postFormData } from '@/utils/request'

export function login({ username, password }) {
  return postFormData('/LoginInfo/Login', {
    username,
    password
  })
}

export function getInfo() {
  return request({
    url: '/v1/auth/user/info',
    method: 'get'
  })
}
export function getBtns() {
  return request({
    url: '/v1/auth/user/buttons',
    method: 'get'
  })
}

export function logout() {
  return request({
    url: '/vue-admin-template/user/logout',
    method: 'post'
  })
}
